package com.xwt.pattern.decorator;

/**
 * Created by xiaowenting on 16/3/22.
 */
public class Father {
    public static void main(String[] args) {
        SchoolReport sr;
        sr = new ForthGradeSchoolReport();//原装的成绩单
        sr = new HighScoreDecorator(sr);
        sr = new SortDecorator(sr);
        sr.report();
        sr.sign("老肖");
    }
}
